<div class="groups index">
	<h1><?php echo __('相册列表');?></h1>
    <div class="bloc">
        <div class="title">
            <span>相册列表</span>
            <p></p>
        </div>
        <div class="admin_view_table">
			<table>
				<thead>
					<tr>
						<th>Id</th>
						<th>用户名</th>
						<th>相册名</th>
						<th>描述</th>
						<th>封面图片</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</thead>
                <tbody>
					<!-- 循环输出数据  -->
						<?php foreach ($albumList as $album): ?>
						<tr>
							<td>
								<?php echo $album['Album']['id']; ?>
							</td>
							<td>
								<?php echo $album['Album']['user_id']; ?>
							</td>
							<td>
								<?php echo $album['Album']['title']; ?>
							</td>
							<td>
								<?php echo $album['Album']['description']; ?>
							</td>
							<td>
								<?php echo $album['Album']['cover_id']; ?>
							</td>
							<td>
								<?php echo $album['Album']['created']; ?>
							</td>
							<td>
								<?php echo $this->Html->link('图片列表',"/admin/album/AlbumPics/index/".$album['Album']['id']);?>
								<?php
									if($album['Album']['type_id'] != '0'){
										echo $this->Html->link('编辑',"/album/albums/edit/".$album['Album']['id']);
									}
								?>
								&nbsp;
								<?php echo $this->Html->link('删除',"/album/albums/delete/".$album['Album']['id'], null,'确认删除?');?>
							</td>
						</tr>
						<?php endforeach; ?>
					 </tbody>
				</table>
			</div>
	<!-- begin 分页 -->
   <div class="pv_page">
            <div>
                <?php
                    echo $this->Paginator->counter(array(
                        'format' => __(' {:page}/{:pages}, {:current} {:count} , 当前显示{:start} 至 {:end}')
                    ));
                ?>	
            </div>
            <div class="paging">
                <?php
                    echo $this->Paginator->prev('< ' . __('上一页'), array(), null, array('class' => 'prev disabled'));
                    echo $this->Paginator->numbers(array('separator' => ''));
                    echo $this->Paginator->next(__('下一页') . ' >', array(), null, array('class' => 'next disabled'));
                ?>
            </div>
        </div>
     </div>
</div>
